package com.syg.event;

import com.syg.domain.LoanInfo;
import org.springframework.context.ApplicationEvent;

/**
 * 放款成功事件
 * @author oe_shenyiguang
 */
public class LoanSuccessEvent extends ApplicationEvent {

    private static final long serialVersionUID = 670847647323156840L;
    /**
     * 借据信息
     */
    private LoanInfo loanInfo;

    /**
     * 放款成功事件构建器
     * @param source
     * @param loanInfo
     */
    public LoanSuccessEvent(Object source, LoanInfo loanInfo) {
        super(source);
        this.loanInfo = loanInfo;
    }

    @Override
    public String toString() {
        return "LoanSuccessEvent{" +
                "loanInfo=" + loanInfo +
                '}';
    }
}
